import request from '@/utils/request'
export function fetchUserList(params) {
  return request({
    url:'/admin/list',
    method:'get',
    params:params
  })
}

export function updateUserInfo(uid,info) {
    return request({
      url:'/admin/update/'+uid,
      method:'post',
      data:info
    })
}
export function newUserInfo(info) {
    return request({
      url:'/admin/register',
      method:'post',
      data:info
    })
}
export function deleteUser(uid) {
    return request({
      url:'/admin/delete/'+uid,
      method:'post'
    })
}

export function getCurUserRole(id) {
  return request({
    url:'/admin/role/'+id,
    method:'get'
  })
}

export function updateUserRoleInfo(info) {
  return request({
    url:'/admin/role/update',
    method:'post',
    data:info
  })
}
//分润操作列表
export function getOperationList(info) {
  return request({
    url:'/admin/distributor/bonus/operation/list',
    method:'post',
    data:info
  })
}

//导出经销商提现操作记录列表
export function fetchListinfo(info) {
  return request({
    url:'/admin/distributor/bonus/operation/list',
    method:'post',
    data:info
  })
}